import { Icon, Toast, Lazyload, DatetimePicker, Dialog, Image as VanImage, Calendar, Skeleton, List, PullRefresh, Col, Row, Popup, Uploader, CellGroup, Picker, Form, Button, Tabbar, Cell, TabbarItem, ActionSheet, Search, Tab, Tabs, NavBar, Field, Tag, NoticeBar } from 'vant'; //引入button组件
import Vue from 'vue'



Vue.use(Icon);
Vue.use(Toast);
Vue.use(DatetimePicker);
Vue.use(Dialog);
Vue.use(VanImage);
Vue.use(Calendar);
Vue.use(Skeleton);
Vue.use(List);
Vue.use(PullRefresh);
Vue.use(Row);
Vue.use(Col);
Vue.use(Popup);
Vue.use(Uploader);
Vue.use(CellGroup);
Vue.use(Picker);
Vue.use(Form);
Vue.use(Cell);
Vue.use(ActionSheet);
Vue.use(NoticeBar);
Vue.use(Tag);
Vue.use(Field);
Vue.use(NavBar)
Vue.use(Tab);
Vue.use(Tabs);
Vue.use(Search);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(Button); //内部把他挂载到Vue上  变成全局

Vue.use(Lazyload, {
    lazyComponent: true,
});